import java.util.concurrent.TimeUnit;

/**
 * @Author: huangya
 * @Date: 2020/11/18
 * @Description:
 */
public class TimeUnitTest {

    public static void main(String[] args) {
        System.out.println(TimeUnit.NANOSECONDS.ordinal());
        System.out.println(TimeUnit.MICROSECONDS.ordinal());
        System.out.println(TimeUnit.MILLISECONDS.ordinal());
        System.out.println(TimeUnit.SECONDS.ordinal());
        System.out.println(TimeUnit.MINUTES.ordinal());
        System.out.println(TimeUnit.HOURS.ordinal());
        System.out.println(TimeUnit.DAYS.ordinal());
    }
}
